<?php


class VsAdminPanel {


	private $_tplBaner = NULL;
	private $_tplMenu = NULL;
	//private $_tplWorkspace = NULL;
	private $_tplFooter = NULL;

	function setTplBaner($tpl) { $this->_tplBaner = $tpl; }
	function setTplMenu($tpl) { $this->_tplMenu = $tpl; }
	function setTplFooter($tpl) { $this->_tplFooter = $tpl; }

	function __construct() {

		$this->_tplBaner = dirname(__FILE__).DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'vsadmin_baner.tpl';
		$this->_tplMenu = dirname(__FILE__).DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'vsadmin_menu.tpl';
		$this->_tplFooter = dirname(__FILE__).DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'vsadmin_footer.tpl';
	}
	//==============================================================================================================

	function showBaner($smarty) {
		$smarty->assign('styles', $smarty->styles());
		$smarty->assign('scripts', $smarty->scripts());

		return $smarty->fetch($this->_tplBaner);
	}
	//=================================================

	function showMenu($smarty) {
		return $smarty->fetch($this->_tplMenu);
	}
	//=================================================

	function showFooter($smarty) {
		return $smarty->fetch($this->_tplFooter);
	}
	//=================================================


};

?>
